package com.cfl.gulimall.member.feign;

import com.cfl.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.Map;

/**
 * 声明式的远程调用
 */

@FeignClient(value = "coupon-service")
public interface CouponFeignService {

    String URL = "coupon/smscoupon";

    @RequestMapping(URL+"/list")
    R list(@RequestParam Map<String, Object> params);

}
